package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.base.domain.RealAuth;
import cn.wolfcode.p2p.business.domain.PaymentSchedule;
import cn.wolfcode.p2p.business.query.BidReturnQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentScheduleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PaymentSchedule record);

    PaymentSchedule selectByPrimaryKey(Long id);

    List<PaymentSchedule> selectAll();

    int updateByPrimaryKey(PaymentSchedule record);

        int selectCount(BidReturnQuery qo);

    List<RealAuth> query(BidReturnQuery qo);

        int getReturnSuccessMonthIndexNumber(@Param("bidRequestId") Long bidRequestId, @Param("state") int state);
}